.ai-dashboard  {
  & .ant-input,
  & .ant-select:not(.ant-select-customize-input) .ant-select-selector,
  & .ant-picker,
  & .ant-input-number,
  & .ant-transfer-list,
  & .ant-btn-primary[disabled],
  & .ant-pro-card-divider,
  & .ant-input-affix-wrapper {
    border-color: @border-color;
  }

  & .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),
  .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover {
    color: @primary-color;
    background-color: transparent;
  }

  & .ant-cascader-menu-item {
    color: @font-color;
    font-size: 12px;
  }

  & .ant-cascader-menu-item:hover {
    background-color: @hover-background;
  }

  & .ant-switch {
    background: @deep-background;
  }

  & .ant-switch-checked {
    background-color: @primary-color;
  }

  & .ant-input[disabled],
  & .ant-btn[disabled]:not(.ant-btn-link),
  & .ant-input-affix-wrapper-disabled,
  & .ant-picker.ant-picker-disabled,
  & .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
    background-color: @disable-color;
  }

  & .ant-select-multiple .ant-select-selection-item {
    background-color: @dark-white-color;
    border-color: @border-color;
  }

  & .ant-select-arrow,
  & .ant-select-selection-placeholder,
  & .ant-select-single.ant-select-open .ant-select-selection-item,
  & .ant-picker-suffix,
  & .ant-picker-separator,
  & .ant-picker-input > input::placeholder,
  & .ant-input-number-input::placeholder,
  & .ant-upload.ant-upload-drag p.ant-upload-hint,
  & .ant-input::placeholder {
    color: #c0ccda;
  }

  & .ant-picker-week-panel-row-selected td {
    .ant-picker-cell-inner:hover {
      color: @primary-color;
    }
  }
  & .ant-btn.ant-btn-default:not(.ant-btn-dangerous):not(.ant-btn-background-ghost) {
    color: @font-color;
    border-color: @border-color;
  }
  // 同时还不包括hover
  & .ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked) {
    color: @font-color;
    border-color: @border-color;
    &:hover {
      color: @primary-color;
    }
  }
  & .ant-upload.ant-upload-drag p.ant-upload-text,
  & .ant-checkbox-wrapper,
  & .ant-select-clear,
  & .ant-select {
    color: @font-color;
  }

  & .ant-btn.ant-btn-default:not(.ant-btn-dangerous):not(.ant-btn-background-ghost):hover {
    color: @primary-color;
    background-color: #f9fafc;
    border-color: @border-color;
  }

  & .ant-upload-list-item:hover .ant-upload-list-item-info {
    background-color: @hover-background;
  }

  & .ant-input-compact-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  & .ant-timeline-item-head {
    background-color: transparent;
  }

  & .ant-upload.ant-upload-drag {
    background-color: @hover-background;
    border-color: @border-color;
  }

  & .ant-list-bordered,
  & .ant-list-split .ant-list-item {
    border-color: @border-color;
  }

  & .ant-input-number-focused,
  &
    .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input)
    .ant-select-selector,
  & .ant-input:focus,
  & .ant-input-focused {
    border-color: @primary-color;
    box-shadow: none;
  }
}

.ant-select-item {
  color: @font-color;
}

.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background-color: @hover-background !important;
}

.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  color: @primary-color !important;
  background-color: transparent !important;
}

.ant-picker-status-error.ant-picker,
.ant-picker-status-error.ant-picker:not([disabled]):hover {
  border-color: var(--ant-error-color);
}

.ant-picker-panel-container,
.ant-select-dropdown {
  box-shadow: 0 7px 14px 0 rgba(153, 168, 192, 0.5), 0 3px 6px 0 rgba(153, 168, 192, 0.07) !important;
}

.ant-picker-cell-disabled::before {
  background-color: #f9fafc !important;
}

.ant-dropdown-menu-item-selected,
.ant-dropdown-menu-submenu-title-selected {
  color: @primary-color;
  background-color: #fff;
  & .ant-dropdown-menu-title-content {
    color: @primary-color;
    font-weight: bold;
  }
}

.ant-dropdown-menu-title-content {
  color: @font-color;
  font-size: 12px;
}

.ant-dropdown-menu-item:hover,
.ant-dropdown-menu-submenu-title:hover,
.ant-dropdown-menu-item.ant-dropdown-menu-item-active,
.ant-dropdown-menu-item.ant-dropdown-menu-submenu-title-active,
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-item-active,
.ant-dropdown-menu-submenu-title.ant-dropdown-menu-submenu-title-active {
  background-color: @hover-background;
}

.ant-btn-link[disabled],
.ant-btn-link[disabled]:hover,
.ant-btn-link[disabled]:focus,
.ant-btn-link[disabled]:active {
  color: #9da9bb;
}

.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner {
  background-color: #f9fafc !important;
}

& .ant-picker-cell:hover {
  &:not(.ant-picker-cell-selected) {
    &:not(.ant-picker-cell-range-start) {
      &:not(.ant-picker-cell-range-end) {
        &:not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end)
          .ant-picker-cell-inner {
          background-color: #f9fafc !important;
        }
      }
    }
  }
}

.ant-picker-cell {
  color: @disable-color !important;
}

.ant-picker-cell-in-view {
  color: @font-color !important;
}

.ant-cascader-menu {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    cursor: pointer;
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(129, 129, 128, 0.55);
    border-radius: 25px;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    &:hover {
      background: rgba(129, 129, 128, 0.8);
    }
  }
  &::-webkit-scrollbar-track {
    background: rgb(240, 243, 247);
    border-radius: 0;
    border-radius: 25px;
    -webkit-box-shadow: none;
  }
}

.filter_form {
  & .ant-pro-form-list-action,
  & .ant-form-item {
    margin-bottom: 16px;
  }
  & .ant-btn-dashed {
    border-color: @border-color;
  }
  & .ant-pro-form-list-creator-button-bottom {
    color: @font-color;
    &:hover {
      color: @primary-color;
      &.ant-btn-dashed {
        border-color: @primary-color;
      }
    }
  }
}

.skeletion-row-1 {
  & ul {
    margin: 0 !important;
  }
}
